//
//  GuardHotCell.m
//  LiveStar
//
//  Created by 漪珊 on 2017/4/13.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "GuardHotCell.h"
#import "GuardListModel.h"

@implementation GuardHotCell

- (void)awakeFromNib {
    [super awakeFromNib];
    kImageViewRadius(self.guardIcon, self.guardIcon.width/2);
}

- (void)setGuardListModel:(GuardListModel *)guardListModel {
    _guardListModel = guardListModel;
    [self.guardIcon sd_setImageWithURL:[NSURL URLWithString:guardListModel.u_avatar] placeholderImage:nil];
    [self.guardName setImage:kSET_IMAGE(@"guard_level3") forState:UIControlStateNormal];
    [self.guardName setTitle:guardListModel.u_nickname forState:UIControlStateNormal];
    self.guardNum.text = KString(guardListModel.money);
}
@end
